/*
 * @Author: 杨上漂
 * @Date: 2024-10-13 18:09:36
 * @LastEditors: 杨上漂
 * @LastEditTime: 2024-10-13 18:17:04
 * @FilePath: \gwlc\assets\scripts\UserInfo.ts
 * @Description: 
 * 
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved. 
 */
import { _decorator, Component, Node, Prefab } from 'cc';
import { Dictionary } from '../utils/Dictionary';
import { Role } from './Role';
import { Equip } from './Equip';
import { Pet } from './Pet';
const { ccclass, property } = _decorator;

@ccclass('UserInfo')
export class  UserInfo  {
    
    static level:number=1;//关卡等级
    static crystalMun:number=20;
    static coinMun:number=20;
    static epicBoxKeyNum:number=0;
    static legendBoxKeyNum:number=0;

    static hasRoleDic:Dictionary<number,Role>=new Dictionary();
    static hasPetDic:Dictionary<number,Pet>=new Dictionary();//拥有宠物字典,key:petId,value:class
    static hasPetChipArr=[];//拥有宠物碎片数组，索引，petType,数量
    static hasRoleChipArr=[];//拥有角色碎片数组，索引，petType,数量
    static hasEquipDic:Dictionary<number,Equip>=new Dictionary();
    static hasEndSkillPropArr=[1,1,1];
    static accumulateEvolvePlayerSkillFireBall=0;//累计升级玩家技能火球术
    static accumulateEvolvePlayerSkillSpike=0;//累计升级玩家技能地刺
    static accumulateEvolvePlayerSkillStarLightBullet=0;//累计升级玩家技能星光箭
    static accumulateHasRoleNum=0;//累计总共拥有过多少个角色
    static receiveAchievementArr=[];//领取过的成就数组
    static currGoBattleRoleId:number=0;
    static seeAdvGetCrystalUseNum:number=0;
    static seeAdvGetCoinUseNum:number=0;
    static openFreeBoxNum:number=0;
    static drawTurnTableNum=-1;//抽转盘了多少次
    static signContinuousDayNum=-1;//签到连续天数
    static todayAlreadyIsSign=false;//今天是否已经签过到;

    //
    static roleCongfiDic: Dictionary<number, any> = new Dictionary();
    static petCongfiDic: Dictionary<number, any> = new Dictionary();
    static equipCongfiDic: Dictionary<number, any> = new Dictionary();
    static rewardCongfiDic: Dictionary<number, any> = new Dictionary();
    static enemyCongfiDic: Dictionary<number, any> = new Dictionary();
   //

    static everyDayTaskCongfiDic: Dictionary<number, any> = new Dictionary();
    static isNewUser=true;//是否是游戏新人用户

    static todayOpenBoxNum=0;//今天抽宝箱了多少次
    static todayBeatEnemyNum=0;//今天击败僵尸多少次
    static todayEnhanceEquipNum=0;//今天强化装备多少次
    static todayWinGateNum=0;//今天胜利通关多少次
    static todayEveryDayTask=null;//今天的每日任务

}


